﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HanoiGame
{
    public partial class Form1 : Form
    {
        #region 【字段】
        private int[] tower_a;
        private int[] tower_b;
        private int[] tower_c;

        //private int archer = 0;
        #endregion

        public Form1()
        {
            InitializeComponent();

            this.CreateHanoiTower(3);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="p"></param>
        private void CreateHanoiTower(int count)
        {
            this.tower_a = new int[count];
            this.tower_b = new int[count];
            this.tower_c = new int[count];

            for (int i = 0; i < count; i++)
            {
                this.tower_a[i] = i + 1;
            }
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);

            Graphics g = e.Graphics;

            Pen pen = new Pen(Color.Black);

            g.FillRectangle(Brushes.Black, new Rectangle(10, 200, 200, 5));
            g.FillRectangle(Brushes.Black, new Rectangle(10 + 10 + 30, 25, 5, 180));
            g.FillRectangle(Brushes.Black, new Rectangle(10 + 10 + 30 + 60, 25, 5, 180));
            g.FillRectangle(Brushes.Black, new Rectangle(10 + 10 + 30 + 60 + 60, 25, 5, 180));
        }
    }
}
